import java.util.Scanner;

public class HomeWork03_08{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        
        System.out.print("please enter an integer: ");
        int time = scan.nextInt();
        while(time > 23 || time < 0){
            System.out.print("data error, please enter an integer again: ");
            time = scan.nextInt();
        }
        
        String result;
        if(time <= 5){
            result = "早晨";
        }else if(time <= 11){
            result = "上午";
        }else if(time <= 17){
            result = "下午";
        }else{
            result = "晚上";
        }
        System.out.print(result);
    }
}